import request from "@/utils/request";


export function getListPage(params){
    return request({
        url:"/generic/sys/role/page",
        method:"get",
        params:params
    })
}

export function getList(params){
    return request({
        url:"/generic/sys/role/list",
        method:"get",
        params:params
    })
}

export function getDetails(id){
    return request({
        url:"/generic/sys/role/"+id,
        method:"get"
    })
}

export function saveData(data){
    return request({
        url:"/generic/sys/role",
        method:"post",
        data:data
    })
}

export function updateData(data){
    return request({
        url:"/generic/sys/role",
        method:"put",
        data:data
    })
}

export function deleteData(id){
    return request({
        url:"/generic/sys/role/"+id,
        method:"delete"
    })
}

export function disable(id){
    return request({
        url:"/generic/sys/role/disable/"+id,
        method:"put"
    })
}

export function enable(id){
    return request({
        url:"/generic/sys/role/enable/"+id,
        method:"put"
    })
}